Skip to content

Fix crash on invalid star lvalue - #22222

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:fix-invalid-unpack
Oct 19, 2026
Merged

ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:fix-invalid-unpack

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

Fixes #20796

I think the correct fix is to not create any placeholders in the first place, since this is essentially a syntax error.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi
ilevkivskyi merged commit 0a2424e into python:master Oct 19, 2026
25 checks passed
@ilevkivskyi
ilevkivskyi deleted the fix-invalid-unpack branch October 19, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NotImplementedError: Cannot serialize PlaceholderNode instance

2 participants